<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body class="timo-layout-page">
    <div class="layui-card">
        <div class="layui-card-header timo-card-header">
            <span><i class="fa fa-bars"></i> 我的申请</span>
            <i class="layui-icon layui-icon-refresh refresh-btn"></i>
        </div>
        <div class="layui-card-body">
            <div class="layui-row timo-card-screen">
                <div class="pull-left layui-form-pane timo-search-box">
                    <div class="layui-inline">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block timo-search-status">
                            <select class="timo-search-select" name="able"  style="width: 80px" >
                                <option th:label="请选择"></option>
                                <option value="1">通过</option>
                                <option value="0">拒绝</option>
                            </select>
                        </div>
                    </div>
<!--                    <div class="layui-inline" style="margin-left: 20px;">
                        <label class="layui-form-label">学生学号</label>
                        <div class="layui-input-block">
                            <input type="text" name="stu_id"  th:value="${param.stu_id}" placeholder="请输入学生学号" autocomplete="off" class="layui-input">
                        </div>
                    </div>-->
                    <div class="layui-inline" style="margin-left: 20px">
                        <button class="layui-btn timo-search-btn">
                            <i class="fa fa-search"></i>
                        </button>
                    </div>
                </div>
<!--                <div class="pull-right screen-btn-group">
                    <button class="layui-btn open-popup" data-title="添加团队申请" th:attr="data-url=@{/SpringBoot/teamApply/add}" data-size="auto">
                        <i class="fa fa-plus"></i> 添加</button>
                    <div class="btn-group">
                        <button class="layui-btn">操作<span class="caret"></span></button>
                        <dl class="layui-nav-child layui-anim layui-anim-upbit">
                            <dd><a class="ajax-status" th:href="@{/SpringBoot/teamApply/status/ok}">通过</a></dd>
                            <dd><a class="ajax-status" th:href="@{/SpringBoot/teamApply/status/freezed}">拒绝</a></dd>
                            <dd><a class="ajax-status" th:href="@{/SpringBoot/teamApply/status/delete}">删除</a></dd>
                        </dl>
                    </div>
                </div>-->
            </div>
            <div class="timo-table-wrap">
                <table class="layui-table timo-table">
                    <thead>
                    <tr>

                        <th>申请团队</th>
                        <th>提交时间</th>
                        <th>申请说明</th>
                        <th>申请状态</th>
                        <!--<th>操作</th>-->
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="item:${list}">
                        <td th:text="${item.teamName}">申请团队</td>
                        <td th:text="${#dates.format(item.createDate, 'yyyy-MM-dd HH:mm:ss')}">创建时间</td>
                        <td><a class="open-popup" data-title="详细信息" th:attr="data-url=@{'/SpringBoot/teamApply/detail/'+${item.id}}" data-size="500,600" href="#">查看申请说明</a></td>
                        <td th:text="${item.able==1?'通过':'未通过'}">申请状态</td>
                        <!--<td>-->
                            <!--<a class="open-popup" data-title="编辑团队申请" th:attr="data-url=@{'/SpringBoot/teamApply/edit/'+${item.id}}" data-size="auto" href="#">编辑</a>-->
                            <!--<a class="open-popup" data-title="详细信息" th:attr="data-url=@{'/SpringBoot/teamApply/detail/'+${item.id}}" data-size="800,600" href="#">详细</a>-->
                            <!--<a class="ajax-get" data-msg="您是否确认删除" th:href="@{/SpringBoot/teamApply/status/delete(ids=${item.id})}">删除</a>-->
                        <!--</td>-->
                    </tr>
                    </tbody>
                </table>
            </div>
            <div th:replace="/common/fragment :: page"></div>
        </div>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>